<?php

//Leo Document_root
$filecfg='config.xml';
if (file_exists($filecfg)){
	
    $docxml = new DOMDocument();
    $docxml->load($filecfg);
    $document_root = $docxml->getElementsByTagName("document_root")->item(0)->nodeValue;
}

include("php/mysql.php");
include("php/funciones.php");

$usr = $_REQUEST['form_usuario'];
$pass= $_REQUEST['form_clave'];
$conf="config.xml";




if (auth($usr,$pass) == true){
   
   header ('Location: /principal.html');
    
}
else{
    
    header ('Location: /index.html');
}


//mysql_close($cnx);
?>